<?php if ($cruds->hasNext()) { ?>
	<ul data-role="listview" data-inset="true">
		<li data-theme="c">
			<div class="ui-grid-b">
				<div class="ui-block-a">
					<div data-role="fieldcontain" class="ui-hide-label">	
						<label for="search">Buscar:</label>
						<input type="text" name="search" id="search" value="" placeholder="Buscar" data-mini="true">
					</div>
				</div>
				<div class="ui-block-b">
				</div>
				<div class="ui-block-c">
					<div data-role="fieldcontain" class="ui-hide-label">
						<label for="properties" class="select">Propiedades:</label>
						<select name="properties" id="properties" multiple="multiple" data-native-menu="false" data-mini="true">
							<option>Propiedades</option>
							<optgroup label="Listado">
								<option value="phone-listing">Smartphone</option>
								<option value="desktop-listing">Desktop</option>
								<option value="tablet-listing">Tablet</option>
							</optgroup>
							<optgroup label="Edición">
								<option value="phone-edit">Smartphone</option>
								<option value="desktop-edit">Desktop</option>
								<option value="tablet-edit">Tablet</option>
							</optgroup>
						</select>
					</div>
				</div>
			</div>
		</li>
		<li data-theme="a">
			<div class="ui-grid-b">
				<div class="ui-block-a">Imagen</div>
				<div class="ui-block-b">Nombre</div>
				<div class="ui-block-c">Tabla</div>
			</div>
		</li>
		<?php while ($cruds->hasNext()) { ?>
			<?php $crud = $cruds->next(); ?>
			<li>
				<div class="ui-grid-b">
					<div class="ui-block-a"><?php echo $crud->img; ?></div>
					<div class="ui-block-b"><?php echo $crud->name; ?></div>
					<div class="ui-block-c"><?php echo $crud->table; ?></div>
				</div>
			</li>
		<?php } ?>
	</ul>
<?php } else { ?>
	<p>No hay ningún ABM cargado.</p>
	<?php
		echo $View->Html()->link(
			'Crear un ABM',
			'puf_admin/' . (new PUF\Route(null, 'cruds', 'edit'))->getUrl(),
			['data-role' => 'button', 'data-inline' => 'true']
		);
	?>
<?php } ?>